    <!DOCTYPE html>
    <html lang="en">
    <head>
        <meta charset="UTF-8">
        <title>透视与3d</title>
        <style>
            *{
                margin: 0;
                padding: 0;
                
            }
            .box{
                height: 400px;
                width: 400px;
                border: 2px solid #121ce0;
                margin: 50px auto;
                background: #0A7EC3;
                transform-style: preserve-3d;
                transform-origin: left;
                transform: rotateY(50deg) rotateX(60deg);
            }
            .box1{
                width: 200px;
                height: 200px;
                border: 1px solid #000;
                margin: 100px auto;
                background: #00FF00;
                transform: rotateX(60deg);
            }
        </style>
    </head>
    <body>
    <div class="box">
        <div class="box1"></div>
    </div>
    </body>
    </html>